import Home from '@/pages/Home';
import Search from '@/pages/Search';
import Register from '@/pages/Register';
import Login from '@/pages/Login';

//所有静态路由配置的数组
export default[
    {
        path:'/',
        component:Home,
    },
    {
        name: 'search',
        path:'/search/:keyword?',
        component:Search,
        props:route=>({
            keyword3: route.params.keyword,
            keyword4: route.query.keyword2
        })
    },
    {
        name:'register',
        path:'/register',
        component:Register,
        meta:{
            isHideFooter:true,
        }
    },
    {
        name:'login',
        path:'/login',
        component:Login,
        meta:{
            isHideFooter:true,
        }
    },
]